package com.easy.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
//import org.apache.poi.ss.formula.functions.T;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

@Data
@TableName("product_comment")

public class ProductComment implements Serializable {
    private static final long serialVersionUID = 1L;
    @TableId(type = IdType.AUTO)
    private Integer id;
    private Integer productId;
    private Integer userId;
    private Integer rating;
    private Integer parentId;
    private String comment;
    private LocalDateTime date;
    private Integer isDel;

    @TableField(exist = false)
    private List<ProductComment> replies;
}
